<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <div id="root">
    <app-header>
      <template v-slot:title>主标题内容：待办事项列表</template>
      <template #subtitle>todolist.....</template>
      <tempalte>hello</tempalte>
    </app-header>
    <h1>标题</h1>
  </div>
  <script src="./libs/vue.js"></script>
  <script>
    new Vue({
      el: '#root',
      data: {
        title: '待办事项列表'
      },
      components: {
        AppHeader: {
          template: `
            <div>
              <h1><slot name="title"></slot></h1>
              <h3><slot name="subtitle"></slot></h3>
              <h5><slot name="default"></slot></h5>
            </div>
          `
        }
      }
    })
  </script>
</body>
</html>